//
//  WAMallOrderCell.m
//  WalkiOS
//
//  Created by luqiuan on 2019/10/24.
//  Copyright © 2019 Chenmuzhou. All rights reserved.
//

#import "WAMallOrderCell.h"

@implementation WAMallOrderCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (IBAction)payAction:(id)sender {
    if(self.payActionBlock){
        self.payActionBlock(self.model);
    }
}


- (void)setModel:(WAOrderModel *)model{
    _model = model;
    self.goodNumLB.text = [NSString stringWithFormat:@"商品编号：%zd",model.ID];
    self.priceLB.text = [NSString stringWithFormat:@"价格：%.1f雨露",model.price];
    self.goodNameLB.text = model.productname;
    [self.goodImageView sd_setImageWithURL:[NSURL URLWithString:model.imageurl] placeholderImage:[UIImage imageNamed:@"default"]];
}

@end
